package com.ygou.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ygou.pojo.Goods;
import com.ygou.pojo.GoodsExample;
import com.ygou.pojo.GoodsType;
import com.ygou.pojo.GoodsWithBLOBs;

public interface GoodsMapper {
	
	GoodsWithBLOBs selGoodsAndTypeByGoodsId(Integer id);
	
    int countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer goodsid);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExampleWithBLOBs(GoodsExample example);

    List<Goods> selectByExample(GoodsExample example);
    
    List<Goods> findByWhere(GoodsExample example);
    
    List<GoodsType> findHotType(GoodsExample example);
    
    List<Goods> findOrWhere(Map<String, Object> map);
    
    Goods selectByPrimaryKey(Integer goodsid);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKeyWithBLOBs(Goods record);

    int updateByPrimaryKey(Goods record);
}